﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ManYan.Common;

namespace ManYan.Domain.Model.Entity
{
    /// <summary>
    /// 系统菜单列表类
    /// </summary>
    [Table("tb_sys_menu")]
    public class tb_system_nav
    {
        [Key]
        /// <summary>
        /// 主键ID
        /// </summary>
        public Guid Id { get; set; }

        /// <summary>
        /// 父ID
        /// </summary>
        public Guid PID { get; set; }

        [Required]
        [MinLength(2)]
        [MaxLength(10)]
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string? NavName { get; set; }

        /// <summary>
        /// 菜单URL地址
        /// </summary>
        public string? NavUrl { get; set; }

        /// <summary>
        /// 导航排序
        /// </summary>
        public int NavSort { get; set; } = 0;

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDeleted { get; set; } = false;
        /// <summary>
        /// 是否可用
        /// </summary>
        public DataStatus Status { get; set; } = DataStatus.enabled;
    }
}
